package com.jiangyao.model.dto;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@ApiModel(value = "保存用户学习课件的进度")
public class PublicStudyCoursewareDto implements BaseDTO{
    @ApiModelProperty(value = "课程id", required = true)
    @NotNull(message = "课程id不能为空", groups = {Add.class})
    private Integer subjectId;

    @ApiModelProperty(value = "课程课件id", required = true)
    @NotNull(message = "课程课件id不能为空", groups = {Add.class})
    private Integer chcoId;


    @ApiModelProperty(value = "本次学习开始学习时间")
    private Date startTime;

    @ApiModelProperty(value = "本次学习结束学习时间")
    private Date endTime;

    @ApiModelProperty("学习时长，精确到秒")
    private Long studyTime;

}
